package com.tucue.dao;

import com.tucue.model.MerchantsOrder;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface MerchantsOrderMapper {
    int deleteByPrimaryKey(Integer merchantsorderid);

    int insert(MerchantsOrder record);

    int insertSelective(MerchantsOrder record);

    List<MerchantsOrder> selectByPrimaryKey(Integer merchantsorderid);

    List<MerchantsOrder> selectAll();

    //查询招商详情订单
    List<Map<String,String>> selectMerchantsOrderDetail(Integer category);

    //更新 招商订单
    int updateMerchantsOrder(MerchantsOrder record);

    //单个删除招商订单
    int deleteMerchantsOrder(@Param(value = "id") int id, @Param(value = "visible") int visible);


    //批量删除招商订单
    int deleteMerchantsOrderBatch(@Param(value = "idlist") List<Integer> idlist, @Param(value = "visible") int visible);


    int updateByPrimaryKey(MerchantsOrder record);
}